#include "uart.h"

void UARTsend(char* input)
{
	//wait till uart ready
	while(ROM_UARTBusy(UART0_BASE));
	while(*input != '\0')
		ROM_UARTCharPut(UART0_BASE, *input++);
	//ROM_SysCtlDelay(ROM_SysCtlClockGet()/2);
}

void bt_UARTsend(char* input)
{
	//wait till uart ready
	while(ROM_UARTBusy(UART4_BASE));
	while(*input != '\0')
		ROM_UARTCharPut(UART4_BASE, *input++);
	//ROM_SysCtlDelay(ROM_SysCtlClockGet()/2);
}

void UARTSend(const unsigned char *pucBuffer, unsigned long ulCount)
{
	while(ulCount--)
	{
		ROM_UARTCharPutNonBlocking(UART0_BASE, *pucBuffer++);
	}
}

